#ifndef SUBLOGIN_H
#define SUBLOGIN_H

#include <QWidget>
#include "registerform.h"

namespace Ui {
class SubLogin;
}

class SubLogin : public QWidget
{
    Q_OBJECT

signals:
    void signalUserLogin(QString id, QString pswd);
    void signalUserRegiter(UserInfo info);

public:
    explicit SubLogin(QWidget *parent = nullptr);
    ~SubLogin();

    void registerSuccess();

public slots:
    void slotReturn();
    void slotUserRegister(UserInfo info);

private slots:
    void on_pb_login_clicked();

    void on_pushButton_clicked();

private:
    Ui::SubLogin *ui;

    RegisterForm* m_registerForm;
};

#endif // SUBLOGIN_H
